package com.niiwoo.civet.trade.dao.mapper;

import com.niiwoo.civet.trade.dao.entity.ProjectRateConfig;
import com.niiwoo.civet.trade.enums.ProjectTypeEnum;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProjectRateConfigMapperExt extends ProjectRateConfigMapper {
    /**
     * 查询所有费率配置信息数据
     * @return
     */
    List<ProjectRateConfig> selectAll();

    /**
     * 查询所有借款期限
     * @return
     */
    List<Integer> selectAllDeadline();

    /**
     * 获取卡贷所有费率配置
     * @param configType
     * @return
     */
    List<ProjectRateConfig> selectAllByType(Byte configType);

    List<ProjectRateConfig> selectRateConfigListByProjectTypeEnum(@Param("projectTypeEnum") ProjectTypeEnum projectTypeEnum);

    ProjectRateConfig selectRateConfigByDeadlineTypeEnum(@Param("deadline") Integer deadline, @Param("projectTypeEnum") ProjectTypeEnum projectTypeEnum);
}